var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.askMenu("我是官厅书记希勒尔。找我有事吗？\r\n#b\r\n#L0#我想强化或制作V核心。#l\r\n#L1#没什么，今天天气真好啊 。#l", 0, 3003462)
        } else {
            if (status === a++) {
                cm.dispose();
                if (b == 0) {
                    cm.openUI(1131);
                    if (!cm.getInfoQuest(39387).isEmpty() && cm.getNumberFromQuestInfo(39387, "q") == 0) {
                        cm.updateInfoQuest(39387, "q=1")
                    }
                } else {
                    if (b == 1) {
                        cm.sendNormalTalk("这种天气，抬头看看天空自由飞翔的鸟儿也不错。\r\n克里蒂亚斯的鸟儿飞得高可是出了名的。", 0, 3003462, false, false)
                    }
                }
            } else {
                cm.dispose()
            }
        }
    }
};